import persistedstate from "pinia-plugin-persistedstate";

export const setupStore = (app: App) => {
  const store = createPinia();
  store.use(persistedstate);
  app.use(store);
  return store;
};

export { useAppStore } from "./app";
export { useSettingStore } from "./setting";
